#include"vector.h"
void Test1()
{
	MyVector::vector<int> v;
	v.push_back(1);
	v.push_back(2);
	v.push_back(3);
	v.insert(v.begin() + 3, 6);
	v.insert(v.begin() + 4, 10);
	for (auto& e : v)
	{
		cout << e << " ";
	}
	cout << endl;
	v.erase(v.begin() + 2);

	for (auto& e : v)
	{
		cout << e << " ";
	}
	cout << endl;
	v.erase(v.begin() + 2);

	for (auto& e : v)
	{
		cout << e << " ";
	}
}
void Test2()
{
	MyVector::vector<int> v = { 1,2,3,4,5,6 };
	for (auto& e : v)
	{
		cout << e << " ";
	}
	cout << endl;
	v.pop_back();
	v.pop_back();
	for (auto& e : v)
	{
		cout << e << " ";
	}
}
void Test3()
{
	MyVector::vector<int> v = { 1,2,2,3,4,5,6 };
	for (auto& e : v)
	{
		cout << e << " ";
	}
	cout << endl;
	auto it = v.begin();
	while (it != v.end())
	{
		if (*it % 2 == 0) {
			it = v.erase(it);
		}
		else {
			it++;
		}
	}
	for (auto& e : v)
	{
		cout << e << " ";
	}
	cout << endl;
}
void Test4()
{
	/*cout << int() << endl;
	int a = int();
	int c(10);
	cout << a  << " " << c;*/

	/*MyVector::vector<int> v(10, 1);
	v.resize(15);
	for (auto& x : v)
	{
		cout << x << " ";
	}
	cout << endl;
	v.resize(20,10);
	for (auto& x : v)
	{
		cout << x << " ";
	}*/

	/*string s("abcdefg");
	MyVector::vector<int> v(s.begin(), s.end());
	for (auto& x : v)
	{
		cout << x << " ";
	}*/

	MyVector::vector<string> v;
	v.push_back("111111");
	v.push_back("111111");
	v.push_back("111111");
	v.push_back("111111");
	v.push_back("111111");
	v.push_back("111111");
	v.push_back("111111");

	for (auto& x : v)
	{
		cout << x << " ";
	}
}
int main()
{
	//Test1();
	//Test2();
	//Test3();
	Test4();
	return 0;
}